﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EdmxTransformer.Components;
using EdmxTransformer.Controls;

namespace EdmxTransformer.Forms
{
    public partial class BaseForm : Form
    {
        public BaseForm()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode)
                return;

            var presettables = this.GetChildren<IPresettable>();
            presettables.ForEach(x => x.Preset());
        }
    }
}
